<%-- 
    Document   : DanhSachSanPhamView
    Created on : 13-02-2011, 21:21:03
    Author     : Mr Long
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html> 
    <div class="mnutitle"><span>Quản Lí Sản Phẩm Trong Kho</span></div>
    <div class="chucnangsp"><a href="tiepnhansanpham.html">Thêm mới</a></div>
    <!--body content-->  
    <div class="boxbody">
        <div class="danhsachsanpham">
            <div class="sprows">
                <div class="sprowhd">
                    <div class="clrowstt"><span>STT</span></div>
                    <div class="clrowtsp"><span>Tên Sản Phẩm</span></div>
                    <div class="clrowlsp"><span>Loại Sản Phẩm</span></div>
                    <div class="clrowtxt"><span>Giới Thiệu</span></div>
                    <div class="clrowgg"><span>Giá Gốc</span></div>
                    <div class="clrowtxt"><span>Địa Chỉ</span></div>
                    <div class="clrowcn"><span>Chức Năng</span></div>
                </div>
            </div>
            <c:forEach items="${lstSP}" var="sPham" varStatus="i">
                <div class="sprows">
                    <div class="sprow">
                        <div class="clrowstt">${i.count}</div>
                        <div class="clrowtsp">${sPham.tenSanPham}</div>
                        <div class="clrowlsp">${sPham.maLoaiSanPham}</div>
                        <div class="clrowtxt"><p>${sPham.gioiThieu}</p></div>
                        <div class="clrowgg">${sPham.giaBan}</div>
                        <div class="clrowtxt"><p>${sPham.diaChi}</p></div>
                        <div class="clrowcn">
                            <div class="cnbutton"><a href="capnhatsanpham.html?MaSP=${sPham.maSanPham}">Sửa</a></div>
                            <div class="cnbutton"><a href="xoasanpham.html?MaSP=${sPham.maSanPham}">Xóa</a></div>
                            <div class="cnbutton"><a href="quanlihinhanh.html?MaSP=${sPham.maSanPham}">Hình</a></div>
                        </div>
                    </div>
                </div>
            </c:forEach>
        </div>   
    </div>
</html>
